import {apiPrefixDispose} from '@/utils/format';
import {request} from '@umijs/max';



/**
 * 被占用端口
 */
export async function usePort<T = any>(sshId: string) {
    return request<API.ResultVO<API.UsePortInfo[]>>(apiPrefixDispose(`/ssh/port/use/${sshId}`), {
      timeout: 30000,
      method: 'GET',
    });
  }
